Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.diff.widgets.contrib--widgettypes

This contribution is part of XML component org.nuxeo.ecm.diff.widgets.contrib inside nuxeo-diff-jsf-6.0.jar

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="version_diff">
          <configuration>
            <title>Diff between live document and a version</title>
            <sinceVersion>5.7</sinceVersion>
            <description>
              <p>
                The version_diff widget displays difference between the live document and a specific version. If
                nothing is specified, last version is compared.
              </p>
              <p>
                It accepts the following properties:
                <ul>
                  <li>
                    versionLabel: the name of the expected label, defautl is "lastVersion"
                  </li>
                  <li>
                    propertyXPath: the property XPath, default is "file:content"
                  </li>
                  <li>
                    height: the iFrame height, default is "400px"
                  </li>
                </ul>
              </p>
            </description>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <categories>
              <category>summary</category>
            </categories>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">/widgets/version_diff_widget_template.xhtml</property>
        </widgetType>

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="version_diff">
      <configuration>
        <title>Diff between live document and a version</title>
        <sinceVersion>5.7</sinceVersion>
        <description>
          <p>
            The version_diff widget displays difference between the live document and a specific version. If
            nothing is specified, last version is compared.
          </p>
          <p>
            It accepts the following properties:
            <ul>
              <li>
                versionLabel: the name of the expected label, defautl is "lastVersion"
              </li>
              <li>
                propertyXPath: the property XPath, default is "file:content"
              </li>
              <li>
                height: the iFrame height, default is "400px"
              </li>
            </ul>
          </p>
        </description>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <categories>
          <category>summary</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/version_diff_widget_template.xhtml</property>
    </widgetType>
  </extension>